﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using ZhimeiSoft.CharmManager.DOL;
using ZhimeiSoft.CharmManager.Interface;
using ZhimeiSoft.CharmManager.Server.Factory;
using ZhimeiSoft.CharmManager.Server.BLL.Interface;

namespace ZhimeiSoft.CharmManager.Server.ServiceProxy
{
    public partial class WSBusinessServerProxyImpl : IBusinessService
    {
        private IEmployeeBLL employeeBLL;

        public WSBusinessServerProxyImpl()
        {
            employeeBLL = BaseBLLFactory.CreateEmployeeBll();
        }

        #region 员工管理

        /// <summary>
        /// 新增员工信息
        /// </summary>
        /// <param name="employee">员工信息实体类</param>
        /// <returns>员工ID</returns>
        public int InsertEmployee(EmployeeEntity employee)
        {
            return employeeBLL.InsertEmployee(employeeBLL);
        }

        /// <summary>
        /// 更新员工信息
        /// </summary>
        /// <param name="employee">员工信息实体类</param>
        public void UpdateEmployee(EmployeeEntity employee)
        {
            employeeBLL.UpdateEmployee(employeeBLL);
        }

        /// <summary>
        /// 删除员工信息
        /// </summary>
        /// <param name="employeeid">员工ID</param>
        public void DeleteEmployee(int employeeid)
        {
            employeeBLL.DeleteEmployee(employeeid);
        }

        #endregion
    }
}
